﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace Twipler.Xtensions
{
    public static class JsonTextReaderExtensions
    {
        public static bool GoIntoObject(this JsonTextReader reader)
        {
            do
            {
                if (reader.TokenType == JsonToken.StartObject)
                    return true;
            } while (reader.Read());

            return false;
        }
    }
}
